package cn.zswltech.gruul.xxljob;

import com.alibaba.fastjson.annotation.JSONField;
import lombok.Data;
import lombok.experimental.Accessors;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Transient;
import java.io.Serializable;
import java.util.Date;

/**
 * @author Jim
 * @version 1.0.0
 * @descripition:
 * @date 2024/2/21 14:25
 */
@Data
@Accessors(chain = true)
@Table(name = "yunhu_org")
public class YunHuOrg implements Serializable {

    /**
     * 组织机构id
     */
    @Id
    @Column(name = "org_id")
    private String orgId;

    /**
     * 办公地址
     */
    @Column(name = "work_addr")
    private String workAddr;

    /**
     * 机构类别编码
     */
    @Column(name = "org_type_code")
    private String orgTypeCode;

    /**
     * 省份直辖市编码
     */
    @Column(name = "province_code")
    private String provinceCode;

    /**
     * 省份直辖市名称
     */
    @Column(name = "province_name")
    private String provinceName;

    /**
     * 单位全称
     */
    @Column(name = "full_name")
    private String fullName;

    /**
     * 上级行政编码上级组织机构id
     */
    @Column(name = "superior_org_id")
    private String superiorOrgId;

    /**
     * 机构类别名称
     */
    @Column(name = "org_type_name")
    private String orgTypeName;

    /**
     * 单位简称
     */
    @Column(name = "short_name")
    private String shortName;

    /**
     * 组织机构编码
     */
    @Column(name = "org_code")
    private String orgCode;

    @Column(name = "gmt_create")
    @JSONField(name = "etl_timestamp")
    private Date gmtCreate;

    @Column(name = "gmt_modified")
    @JSONField(name = "etl_update_time")
    private Date gmtModified;



}
